package pro.cherish.smartfile.module.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * @author lys
 */
@Data
@ApiModel(value = "FileUploadReq", description = "文件分片上传实体")
@ToString
public class FileUploadReq {
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "文件名")
    private String fileType;

    @ApiModelProperty(value = "文件名")
    private String filename;

    @ApiModelProperty(value = "文件大小，单位字节")
    private Long totalSize;

    @ApiModelProperty(value = "当前分片")
    private Integer chunkNumber;

    @ApiModelProperty(value = "当前分片大小")
    private Integer currentChunkSize;

    @ApiModelProperty(value = "分片大小")
    private Integer chunkSize;

    @ApiModelProperty(value = "分片总数")
    private Integer totalChunks;

    @ApiModelProperty(value = "identifier")
    private String identifier;

    @ApiModelProperty(value = "reqTime", notes = "请求访问的时间")
    private Date reqTime;

    @ApiModelProperty(value = "currentChunkMd5")
    private String currentChunkMd5;


}